<?php
class UrlProc
{
    private $_redis = null;
    private $_inurl = "marvel_listurl";//用于存储从列表页面解析出的文章URL
    private $_outurl = "marvel_contenturl";//用于存储待解析出文章URL
    private $_urlhash = "marvel_url";//存放所有唯一的url
    public function __construct() {
        $redis = new Redis;
        if(false===$redis->pconnect('127.0.0.1')){
            throw new Exception("连接错误");
        }
        if(false === $redis->auth("1qaz2wsx")){
            throw new Exception("认证错误");
        }
        $this->_redis = $redis;
    }
    /**
     * 读取listurl,获取一个带解析文章的URL
     */
    public function getConUrl(){
        $this->_redis->
    }
}
